import request from '@/utils/request'

export function storage(data) {
    return request({
        url: '/api/Certification/storage',
        method: 'post',
        data
    })
}
export function cargo(data) {
    return request({
        url: '/api/Certification/cargo',
        method: 'post',
        data
    })
}
//盘点凭证
export function check(data) {
    return request({
        url: '/api/Takestockcertification/index',
        method: 'post',
        data
    })
}
export function noModernInStatement(data) {
    return request({
        url: '/api/Certification/noModernInStatement',
        method: 'post',
        data
    })
}
export function modernInStatement(data) {
    return request({
        url: '/api/Certification/modernInStatement',
        method: 'post',
        data
    })
}
export function noModernBackStatement(data) {
    return request({
        url: '/api/Certification/noModernBackStatement',
        method: 'post',
        data
    })
}

export function modernBackStatement(data) {
    return request({
        url: '/api/Certification/modernBackStatement',
        method: 'post',
        data
    })
}
//结算单凭证
export function statement(data) {
    return request({
        url: '/api/Certification/statement',
        method: 'post',
        data
    })
}
//销售凭证（分货单）
export function Salecer(data) {
    return request({
        url: '/api/Salecertification/index',
        method: 'post',
        data
    })
}
//加工厂产成品入库凭证
export function Inputcer(data) {
    return request({
        url: '/api/Inputcertification/index',
        method: 'post',
        data
    })
}
//加工厂生成领用单
export function Outputcer(data) {
    return request({
        url: '/api/Outputcertification/index',
        method: 'post',
        data
    })
}
//结算单凭证
export function Statementcer(data) {
    return request({
        url: '/api/Statementcertification/index',
        method: 'post',
        data
    })
}
//商超销售凭证
export function saleCertification(data) {
    return request({
        url: '/smkapi/certification/saleCertification',
        method: 'post',
        data
    })
}
//商超采购凭证
export function purchase(data) {
    return request({
        url: '/smkapi/proof/purchase',
        method: 'post',
        data
    })
}
//商超结算凭证
export function settlement(data) {
    return request({
        url: '/smkapi/proof/settlement',
        method: 'post',
        data
    })
}
//商超返点结算凭证
export function settlement1(data) {
    return request({
        url: '/smkapi/proof/settlement1',
        method: 'post',
        data
    })
}
//商超收门店返货凭证
export function SCRefundCertification(data) {
    return request({
        url: '/smkapi/Certification/SCRefundCertification',
        method: 'post',
        data
    })
}
//商超门店返货凭证
export function CRefundCertification(data) {
    return request({
        url: '/smkapi/Certification/CRefundCertification',
        method: 'post',
        data
    })
}
//商超返货凭证
export function returnBill(data) {
    return request({
        url: '/smkapi/proof/returnBill',
        method: 'post',
        data
    })
}
//高退低进凭证
export function gtdj(data) {
    return request({
        url: '/smkapi/proof/gtdj',
        method: 'post',
        data
    })
}
//高退低进凭证
export function disCertification(data) {
    return request({
        url: '/smkapi/certification/disCertification',
        method: 'post',
        data
    })
}
//销售凭证（分货单）新
export function salenew(data) {
    return request({
        url: '/api/Salecertification/salenew',
        method: 'post',
        data
    })
}
//退货凭证新
export function refundnew(data) {
    return request({
        url: '/api/Salecertification/refundnew',
        method: 'post',
        data
    })
}

//退货凭证(中仓自建)
export function refundnew1(data) {
    return request({
        url: '/api/Salecertification/refundnew1',
        method: 'post',
        data
    })
}
//销售凭证（中仓订单）
export function saleOrderCertification(data) {
    return request({
        url: '/api/Salecertification/saleOrderCertification',
        method: 'post',
        data
    })
}

//调拨接收凭证
export function allocationInp(data) {
    return request({
        url: '/smkapi/proof/allocationInp',
        method: 'post',
        data
    })
}

//调拨调出凭证
export function allocationOut(data) {
    return request({
        url: '/smkapi/proof/allocationOut',
        method: 'post',
        data
    })
}

export function settlementnew(data) {
    return request({
        url: 'smkapi/proof/settlementnew',
        method: 'post',
        data
    })
}
//商超付款流水凭证
export function scPayFlow(data) {
    return request({
        url: '/smkapi/Timecertification/payFlow',
        method: 'post',
        data
    })
}
//中仓付款流水凭证
export function payFlow(data) {
    return request({
        url: '/api/Timecertification/payFlow',
        method: 'post',
        data
    })
}
//中仓改账凭证与导出
export function correct(data) {
    return request({
        url: '/api/proof/correct',
        method: 'post',
        data
    })
}
//商超改账凭证与导出
export function superCorrect(data) {
    return request({
        url: '/smkapi/proof/correct',
        method: 'post',
        data
    })
}

